class CreateItems < ActiveRecord::Migration
  def self.up
    create_table :items do |t|
      t.string :item_name
      t.decimal :item_price, :precision => 8, :scale => 2, :default =>0
      t.text :item_detail
      t.integer :item_quantity
      t.date :item_boughtdate
      t.date :item_expiredate

      t.timestamps
    end
  end

  def self.down
    drop_table :items
  end
end
